package com.michael.study.component.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import android.widget.Toast

/**
 * Description:
 *
 * Created by liuguoquan on 2020/7/31 16:24.
 */
class MyReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context?, intent: Intent?) {
        Log.d("lgq", "onReceive: " + intent?.action)
        Toast.makeText(context,intent?.action,Toast.LENGTH_LONG).show()
    }
}